<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" >
      <el-form-item label="案件编号">
        <el-input v-model="queryParams.ajbh" placeholder="请输入案件编号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="案件名称">
        <el-input v-model="queryParams.ajmc" placeholder="请输入案件名称" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="被取保候审人(被行政拘留人)" prop="hsr">
        <el-input v-model="queryParams.hsr" placeholder="请输入被取保候审人(被行政拘留人)" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>
    <el-row :gutter="10" class="mb8">
      <!-- <el-col :span="1.5">
        <el-select v-model="queryParams.kp" placeholder="请选择是否开票">
          <el-option v-for="(item, index) in [{ id: 1, name: '未开票' }, { id: 2, name: '已开票' }]" :key="index" :label="item.name" :value="item.name"></el-option>
        </el-select>
      </el-col> -->
      <el-col :span="1.5">
      <el-button type="primary" plain icon="el-icon-download" size="mini" :disabled="!form.ajmc" @click="handleckfj">查看电子票据</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-download" size="mini" :disabled="!form.ajmc" @click="handleExport" >打印退还回单</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" :disabled="!form.ajmc" @click="handleReturnExport" >打印退还保证金回执</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" height="650" :data="bzjtableList" :row-class-name="tableRowClassName" @current-change="tableCurrentChange">
      <!-- <el-table-column type="selection" width="55" align="center" /> -->
      <el-table-column label="key" align="center" prop="xh" />
      <el-table-column label="案件编号" align="center" prop="ajbh" />
      <el-table-column label="案件名称" align="center" prop="ajmc" />
      <el-table-column label="收取法律文书号" align="center" prop="sqwsh"  width="150"/>
      <el-table-column label="被取保候审人(被行政拘留人)" align="center" prop="hsr"  width="100"/>
      <el-table-column label="人员类别" align="center" prop="xjr"  width="100"/>
      <el-table-column label="性别" align="center" prop="xb" />
      <el-table-column label="出生日期" align="center" prop="csrq" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.csrq, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="住址" align="center" prop="zz" />
      <el-table-column label="户籍地址" align="center" prop="hjdz" />
      <el-table-column label="单位及职务" align="center" prop="dwzw"  width="150"/>
      <el-table-column label="联系电话" align="center" prop="lxdh" />
      <el-table-column label="身份证号" align="center" prop="sfzh" />
      <el-table-column label="案件性质" align="center" prop="ajxz"  width="250"/>
      <el-table-column label="保证金金额" align="center" prop="sqje"  width="100"/>
      <el-table-column label="收费方式" align="center" prop="sqfs" />
      <el-table-column label="填报人" align="center" prop="sqtfr" />
      <el-table-column label="填报时间" align="center" prop="sqtfsj"  width="180"/>
      <!-- <el-table-column label="收取状态" align="center" prop="sqzt" /> -->
      <!-- <el-table-column label="委托交款人代" align="center" prop="jkr" />
        <el-table-column label="委托交款人身份证" align="center" prop="jkrsfz" />
        <el-table-column label="收银行编号" align="center" prop="dsyhbh" />
        <el-table-column label="缴款时间" align="center" prop="jnsj" width="180">
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.jnsj, '{y}-{m}-{d}') }}</span>
          </template>
      </el-table-column>-->
      <!-- <el-table-column label="交纳银行卡号" align="center" prop="jnkh" /> -->
      <el-table-column label="批准人" align="center" prop="pzr" />
      <el-table-column label="取保候审批准时间" align="center" prop="pzsj"  width="180"/>
      <el-table-column label="办案人" align="center" prop="bar" />
      <el-table-column label="办案人所在单位编号" align="center" prop="dwbh"  width="150"/>
      <el-table-column label="办案单位" align="center" prop="badw" />
      <el-table-column label="填报人" align="center" prop="sqtfr" />
      <el-table-column label="填报时间" align="center" prop="sqtfsj" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.sqtfsj, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="退还金额" align="center" prop="thje" />
      <el-table-column label="退还方式" align="center" prop="thfs" />
      <el-table-column label="退还状态" align="center" prop="thzt" />

      <el-table-column label="退还法律文书号" align="center" prop="thwsh"  width="150"/>
      <!-- <el-table-column label="退还批准人" align="center" prop="thpzr" /> -->
      <!-- <el-table-column label="退还填发时间" align="center" prop="thtfsj" width="180">
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.thtfsj, '{y}-{m}-{d}') }}</span>
          </template>
      </el-table-column>-->
      <el-table-column label="退还审核状态" align="center" prop="thshzt"  width="100"/>
      <el-table-column label="退还审核人" align="center" prop="thshr"  width="100"/>
      <!-- <el-table-column label="退还审核日期" align="center" prop="thshsj" /> -->
      <el-table-column label="退还账户姓名" align="center" prop="thxm"  width="100"/>
      <el-table-column label="退还账号" align="center" prop="thzh" />
      <el-table-column label="退还开户行" align="center" prop="thkhh"  width="100"/>
      <!-- <el-table-column label="单据状态" align="center" prop="djzt" /> -->
      <!-- <el-table-column label="收取打印状态" align="center" prop="sqdyzt" />
        <el-table-column label="单据时间" align="center" prop="djsj" width="180">
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.djsj, '{y}-{m}-{d}') }}</span>
          </template>
        </el-table-column>
        <el-table-column label="收取开票打印状态" align="center" prop="sqkpzt" />
      <el-table-column label="退还开票打印状态" align="center" prop="thkpzt" />-->
      <el-table-column label="退还日期" align="center" prop="thrq" width="180">
      <template slot-scope="scope">
            <span>{{ parseTime(scope.row.thrq, '{y}-{m}-{d}') }}</span>
          </template>
      </el-table-column>
      <!-- <el-table-column label="划拨法律文书号" align="center" prop="hbwsh" />
        <el-table-column label="划拨单位名称" align="center" prop="hbdw" />
        <el-table-column label="划拨金额" align="center" prop="hbje" />
        <el-table-column label="划拨操作员" align="center" prop="hbry" />
        <el-table-column label="划拨日期" align="center" prop="hbrq" width="180">
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.hbrq, '{y}-{m}-{d}') }}</span>
          </template>
      </el-table-column>
      <el-table-column label="划拨单位联系人电话" align="center" prop="hblxdh" />-->
      <!-- <el-table-column label="划拨时间" align="center" prop="hbsj" width="180">
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.hbsj, '{y}-{m}-{d}') }}</span>
          </template>
        </el-table-column>
      <el-table-column label="划拨时间" align="center" prop="hbczy" />-->
      <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
          <template slot-scope="scope">
            <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:bzjtable:edit']">修改</el-button>
            <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['system:bzjtable:remove']">删除</el-button>
          </template>
      </el-table-column>-->
    </el-table>
    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />

    <div ref="print" class="box" v-show="isShow">
      <h2>保证金退还</h2>
      <div class="top">
        <p>退还日期：{{ this.form.thrq }}</p>
      </div>
      <div>
        <table width="800px" border="1px" cellspacing="0px" cellpadding="10px" align="center" bgcolor="#fff">
          <tbody align="center">
            <!--第二行-->
            <tr>
              <td style="width: 150px;">收款方账户</td>
              <td style="width: 200px;">{{this.$store.state.user.yhzh}}</td>
              <td style="width: 150px;">收款方户名</td>
              <td style="width: 200px;">{{this.$store.state.user.yhmc}}</td>
            </tr>

            <!--第三行-->
            <tr>
              <td>执法机关名称</td>
              <td>{{ this.form.badw }}</td>
              <td>法律文书号</td>
              <td>{{ this.form.thwsh }}</td>
            </tr>

            <!--第四行-->
            <tr>
              <td>被取保候审人(被行政拘留人)</td>
              <td>{{ this.form.hsr }}</td>
              <td>身份证号</td>
              <td>{{ this.form.sfzh }}</td>
            </tr>
            <!-- <tr>
              <td>人员类别</td>
              <td>{{ this.form.sfzh }}</td>
              <td></td>
              <td>5151515</td>
            </tr>-->
          </tbody>
          <!--第五行-->
          <tfoot>
            <tr style="height: 200px;" valign="top">
              <td colspan="4">
                <div style="display: flex;">
                  <p>退还项目：取保候审保证金</p>
                  <p style="margin-left:200px;">退还金额：{{ this.form.thje }}元</p>
                </div>
              </td>
            </tr>
            <tr>
              <td colspan="1">金额大写</td>
              <td colspan="3">{{handleReturnBigNum(this.form.thje ) }}</td>
            </tr>
          </tfoot>
        </table>
        <!-- <img src="https://img0.baidu.com/it/u=1505576873,3746429877&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800" width="200" class="imgs" alt /> -->
        <p style="margin-left:-500px;">代收银行：{{this.$store.state.user.yhmc}}</p>
      </div>
    </div>
    <div ref="print1" class="bb" v-show="isReturnShow">
      <div class="box1">
      <div class="box2">
        <div class="heade">
          <h4>{{this.$store.state.user.deptName}}</h4>
          <h1 style="white-space: pre;">
          退 还 保 证 金 通 知 书
      </h1>
      <span style="margin-bottom: 50px;font-weight: 500;font-size: 20px;white-space: pre;">（回  执）</span>
      <p style="margin-top: 50px;margin-left: 200px;font-size: 20px;">{{ this.form.thwsh }}</p>
        </div>
        <div class="cont">
          <div class="line">{{this.$store.state.user.deptName}}：</div>
          <p class="contu">
            根据你局通知，我行已退还
            {{ this.form.hsr}}(性别
            <span>{{ this.form.xb }}</span> ，出生日期
            <span>{{ this.form.csrq }}</span>
            住址
            <span>{{ this.form.hjdz }})</span>
            交纳的取保候审保证金（大写）
            <span>{{handleReturnBigNum(this.form.thje)}}</span>元，我单位已办理完毕。
          </p>
          <div class="footer">
            <p>{{ this.form.dsyhbh }}</p>
            <p style="margin-top: 15px">{{date.getFullYear()+'年'+(date.getMonth() + 1)+'月'+date.getDate()+'日'}}</p>
            <img src="@/assets/images/gz.png" width="150" class="imgs" alt />
          </div>
        </div>
      </div>
      </div>
      <p class="asd">此联由银行填写后退回公安机关，交由取保候审决定机关附卷。</p>
    </div>
    <el-dialog :visible.sync="pdfs" width="45%">
         <div style="display: flex;align-items: center;justify-content: center;">
          <img :src="this.pdfUrl" alt width="80%" />
         </div>
    </el-dialog>
    <el-dialog title="查看电子票据" :visible.sync="dialogFormVisible">
        <el-table height="600" border :data="fileList" :header-cell-style="{ backgroundColor: 'rgb(237 237 237)'}">
          <el-table-column label="文件名称" prop="fjmc" />
          <el-table-column label="环节" prop="lb" />
          <el-table-column label="文件类型" prop="wjlx" />
          <el-table-column fixed="right" label="操作" width="200">
            <template slot-scope="scope">
              <el-button type="success" plain size="mini" @click="handlexzfj(scope.row)" :disabled="!scope.row.wjdz" >下载附件</el-button>
              <el-button type="success" plain size="mini" @click="yul(scope.row)" :disabled="!(scope.row.wjdz.split('.')[1] == 'png' || scope.row.wjdz.split('.')[1] == 'jpg' || scope.row.wjdz.split('.')[1] == 'jpeg')" >预览</el-button>
            </template>
          </el-table-column>
        </el-table>
      </el-dialog>

  </div>
</template>
  
<script>
import { thhzList, getBzjtable, delBzjtable, addBzjtable, updateBzjtable ,downLoadFile,getFjList} from "@/api/system/bzjtable";
import selectMultiple from '@/views/collect/addSecurity/selectMultiple'
import Print from '@/utils/print.js'
import {convertCurrency} from '@/utils/index'
import { tansParams, blobValidate } from "@/utils/ruoyi";
import { saveAs } from 'file-saver'

export default {
  name: "Bzjtable",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      directoryList: [],
      isShow: false,
      isReturnShow: false,
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 【请填写功能名称】表格数据
      bzjtableList: [],
      fileList:[],
      // 弹出层标题
      tit: "",
      // 是否显示弹出层
      open: false,
      dialogFormVisible :false,
      pdfs: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        ajbh:null,
        ajmc:null,
        hsr: null
      },
      // formInfo: {},
      // 表单参数
      form: {
        lxdh: '',
        sfzh: '',
        // sqtfr: this.$store.state.user.name,
        mstfr: this.$store.state.user.name,
        mstfsj: this.getNowFormatDate()
      },
      currentIndex: '',
      date:new Date(),
      pdfUrl: '',
      // formInfo: {},
      wjdz: '',
    };
  },
  components: {
    selectMultiple
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询【请填写功能名称】列表 */
    getList() {
      this.loading = true;
      thhzList(this.queryParams).then(response => {
        response.rows.forEach((item, index) => {
          item.pIndex = index + 1
        })
        this.bzjtableList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    convertToUppercase(number) {
        const lowercaseDigits = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"];
        const uppercaseDigits = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"];

        const numberString = String(number);
        let result = "";

        for (let i = 0; i < numberString.length; i++) {
          const digit = parseInt(numberString[i]);
          result += uppercaseDigits[digit];
        }

        return result;
      },
    // 取消按钮
    cancel() {
      this.open = false;
      this.getList();
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        xh: null,
        ajbh: null,
        ajmc: null,
        sqwsh: null,
        hsr: null,
        xjr: null,
        xb: null,
        csrq: null,
        zz: null,
        hjdz: null,
        dwzw: null,
        lxdh: null,
        sfzh: null,
        ajxz: null,
        sqje: null,
        sqfs: null,
        sqzt: null,
        jkr: null,
        jkrsfz: null,
        dsyhbh: null,
        jnsj: null,
        jnkh: null,
        pzr: null,
        pzsj: null,
        bar: null,
        dwbh: null,
        badw: null,
        sqrq: null,
        // sqtfsj: this.getNowFormatDate(),
        // sqtfr: this.$store.state.user.name,
        msje: null,
        mszt: null,
        msyy: null,
        mswsh: null,
        mspzr: null,
        mspzsj: null,
        mstfr: this.$store.state.user.name,
        msrq: null,
        mstfsj: this.getNowFormatDate(),
        msshzt: null,
        mskhzt: null,
        mskhsj: null,
        mskhczr: null,
        thje: null,
        thfs: null,
        thzt: null,
        thrq: null,
        thwsh: null,
        thpzr: null,
        thtfsj: null,
        thshzt: null,
        thshr: null,
        thshsj: null,
        thxm: null,
        thzh: null,
        thkhh: null,
        djzt: null,
        sqdyzt: null,
        djsj: null,
        sqkpzt: null,
        thkpzt: null,
        hbwsh: null,
        hbdw: null,
        hbje: null,
        hbry: null,
        hbrq: null,
        hblxdh: null,
        hbsj: null,
        hbczy: null
      };
      this.resetForm("forms");
    },
    tableRowClassName({ row, column, rowIndex, columnIndex }) {
      //逻辑判断决定是否修改样式，如果分组一致则使用同一个样式
      return row.pIndex == this.currentIndex ? 'hover-bg' : ''
    },
    tableCurrentChange(row) {
      this.form = row
      this.currentIndex = row?.pIndex
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.queryParams.ajbh = ''
      this.queryParams.ajmc = ''
      this.queryParams.hsr = ''
      this.resetForm("queryForm");
      this.handleQuery();
    },
    handleckfj() {
        this.dialogFormVisible = true
        getFjList({ xh: this.form.xh }).then((res) => {
          this.fileList = res.rows
        })
      },
            /**下载附件 */
    handlexzfj(val) {
        // this.download('/confiscate/forfeitureOfDeposit/downLoadFile', { wjdz: this.form.wjdz }, `role_${new Date().getTime()}.png`)
        downLoadFile({ wjdz: val.wjdz }).then(async (data) => {
          this.$modal.msgSuccess("下载成功");
          const url = window.URL.createObjectURL(data);
          this.pdfUrl = url;//直接用iframe标签
          const isBlob = blobValidate(data);
          if (val.wjdz && val.wjdz.split('.')[1] == 'png' || val.wjdz &&val.wjdz.split('.')[1] == 'jpg' || val.wjdz &&val.wjdz.split('.')[1] == 'jpeg') {
            if (isBlob) {
              const blob = new Blob([data])
              saveAs(blob, `role_${new Date().getTime()}.png`)
            } else {
              const resText = await data.text();
              const rspObj = JSON.parse(resText);
              const errMsg = errorCode[rspObj.code] || rspObj.msg || errorCode['default']
              Message.error(errMsg);
            }
          } else if (val.wjdz &&val.wjdz.split('.')[1] == 'pdf') {
            // let pdfUrl = window.URL.createObjectURL(new Blob([data], { type: "application/pdf" }));
            // window.open(pdfUrl)
            let blob = new Blob([data], { type: 'application/pdf' });
            let downloadElement = document.createElement("a");
            let href = window.URL.createObjectURL(blob); //创建下载的链接
            downloadElement.href = href;
            downloadElement.download = `pdf下载`    //下载后的文件名，根据需求定义
            document.body.appendChild(downloadElement);
            downloadElement.click(); //点击下载
            document.body.removeChild(downloadElement); //下载完成移除元素
            window.URL.revokeObjectURL(href); //释放掉blob对象
          } else {
            const blob = new Blob([data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }) // response就是接口返回的文件流
            const objectUrl = URL.createObjectURL(blob)
            const a = document.createElement('a') // 创建a标签
            a.href = objectUrl
            a.download = 'excel下载' // 自定义文件名
            a.click() // 下载文件
            window.URL.revokeObjectURL(objectUrl) // 释放内存
            // link.remove()
          }
          this.dialogFormVisible = false
        })
      },
      yul(val) {
      downLoadFile({ wjdz: val.wjdz }).then(async (data) => {
        // if (this.wjdz && this.wjdz.split('.')[1] == 'png' || this.wjdz &&this.wjdz.split('.')[1] == 'jpg' || this.wjdz.split('.')[1] == 'jpeg') {
          const url = window.URL.createObjectURL(data);
          this.pdfUrl = url;//直接用iframe标签
          this.pdfs = true
        // }
      })
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.xh)
      this.single = selection.length !== 1
      this.multiple = !selection.length
    },
    /** 导出按钮操作 */
    handleExport() {
      this.isShow = true
      console.log(this.$refs.print);
      this.$nextTick(() => {
        Print(this.$refs.print)
        this.isShow = false
      })
      // this.download('system/bzjtable/export', {...this.queryParams}, `bzjtable_${new Date().getTime()}.xlsx`)
    },
    handleReturnExport() {
      this.isReturnShow = true
      console.log(this.$refs.print1);
      this.$nextTick(() => {
        Print(this.$refs.print1)
        this.isReturnShow = false
      })
    },
    handleReturnBigNum(data) {
      return convertCurrency(data)
    }
    
  }
};
</script>
<style rel="stylesheet/scss" lang="scss">
@page {
  size: 1220px 880px;
  margin-top: 0mm;
}
</style>
<style rel="stylesheet/scss" lang="scss" scoped>
.creation {
  .el-form-item {
    margin-bottom: 15px;
  }

  ::v-deep.el-input__inner {
    width: 250px;
  }

  .xx {
    ::v-deep.el-input__inner {
      width: 630px;
    }
  }
}

::v-deep .el-table__body-wrapper::-webkit-srollbar-track {
  background-color: rgba(255, 255, 255, 0);
}

//可设置胶囊宽高
::v-deep .el-table__body-wrapper::-webkit-scrollbar {
  height: 12px;
  width: 10px;
  opacity: 0.5;
}

// 设置胶囊色
::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb {
  border-radius: 15px;
  background-color: #cdd9e6;
}

.box {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 40px;
  height: 500px;

  .top {
    display: flex;
    text-align: center;
    margin: 10px auto;
  }

  td {
    text-align: left;
  }

  .imgs {
    position: absolute;
    bottom: -50px;
  }
}

::v-deep .el-table__body .el-table__row.hover-bg td {
  background-color: #cde6f7 !important;
}
.bb {
  padding-top: 40px;

  .box1 {
    position: relative;

    margin: 0 auto;
    // padding: 40px;
    width: 550px;
    height: 700px;
    border: 3px solid #000;
    .box2{
      position: absolute;
  // margin: 0 auto;
  margin: 3px;
    padding: 20px;
    width: 538px;
    height: 688px;
    border: 1px solid #000;

    .heade {
      text-align: center;
margin-top:20px ;
      >h2 {
              margin-top:40px ;
// font-family: monospace;
        // font-weight: 800;
      }

      >h1 {
        // margin-top:20px ;
        margin: 20px 0 20px 0;
        font-weight: 600;
      }
    }

    .cont {
      position: relative;
      margin-top: 50px;
      font-size: 18px;

      .line {
        width: 240px;
        height: 23px;
        text-align: right;
        // margin-left: 30px;
        border-bottom: 1px solid #000;
        font-size: 20px;
      }

      .contu {
        text-indent: 24px;
        line-height: 45px;
        width: 500px;
        font-size: 20px;
        margin: 20px auto;

        >span {
          border-bottom: 1px solid #000;
        }
      }

      .footer {
        position: absolute;
        bottom: -150px;
        right: 30px;
        width: 220px;
        text-align: center;

        .imgs {
          border-radius: 50%;
          position: absolute;
          top: -35px;
          right: 33px;
        }
      }
    }
  }
}
.asd {
  position: absolute;   
  left: 31%;
}
}
</style>